package com.emperor.cashier.app;

import java.util.Map;

import org.apache.log4j.Logger;

import com.emperor.core.app.AppConstant;
import com.emperor.core.app.AppCtrl;

public class CashierAppCtrl implements AppCtrl {

	public static final String CASHIER_CTRL = "cashier.ctrl";
	public static final String CASHIER_FORM = "cashier.form";
	public static Logger log = Logger.getLogger(CashierAppCtrl.class);
	
	public void doProcess(Map<String, Object> params) {
		if (params == null) {
			log.error("Param is null");
		} else if (params.get(AppConstant.ACTION).equals(CASHIER_FORM)) {
			CashierAppForm form = new CashierAppForm(params);
			form.open();	
		}
	}
}
